
package HibernateLayer;

import POJOs.SSessionAllocation;
import POJOs.client;
import POJOs.worker;
import org.hibernate.Session;

/**
 *
 * @author fabiofurlan
 */
public class VWorkerServices extends VRelationBasicServices<client,worker> {

    @Override
    protected Class<worker> getTypeClass() {
        return worker.class;
    }

    @Override
    protected Class<client> getTypeClassr() {
        return client.class;
    }

    public VWorkerServices(){
    }

    public VWorkerServices(Session sBean){
        this.sessionBean=sBean;
    }

    public VWorkerServices(SSessionAllocation sAlloc){
        this.sessionAllocation=sAlloc;
        //In this code line we add this object to observable list of SSessionAllocation instance
        this.sessionAllocation.addObserver(this);
        this.sessionBean=sAlloc.session;
    }

}
